/* Confirm Use Folder Modal Styles */
.use-folder-option-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-modal, 1000);
  animation: fadeIn 0.2s ease-out; /* Fade in animation */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  backdrop-filter: blur(2px); /* Slight blur effect for depth */
  transition: opacity 0.2s ease; /* Smooth transition when closing */
}

.use-folder-option-modal {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  background-color: var(--background-secondary);
  border-radius: var(--border-radius-lg);
  width: 500px;
  max-width: 90%;
  padding: var(--space-lg) var(--space-lg);
  border: var(--standard-border);
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

button.primary.confirm-button {
  background-color: var(--color-primary);
  color: var(--text-on-primary);
  border-color: var(--color-primary);
}

button.primary.confirm-button:hover {
  border-color: var(--color-primary);
}

button.primary.decline-button {
  background-color: var(--error-color);
  color: var(--text-on-primary);
  border-color: var(--error-color);
}

button.primary.decline-button:hover {
  border-color: var(--error-color);
}

button.icon-button.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--animation-curve);
  -webkit-transition: all 0.2s var(--animation-curve);
  -moz-transition: all 0.2s var(--animation-curve);
  -ms-transition: all 0.2s var(--animation-curve);
  -o-transition: all 0.2s var(--animation-curve);
}

button.icon-button.close-button:hover,
button.icon-button.close-button:focus-visible {
  color: var(--text-primary);
  background: none;
  box-shadow: none;
}

.modal-content {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.modal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.modal-content code {
  background-color: var(--background-tertiary);
  padding: 2px 4px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-code);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  word-break: break-all;
  -webkit-border-radius: var(--border-radius-md);
  -moz-border-radius: var(--border-radius-md);
  -ms-border-radius: var(--border-radius-md);
  -o-border-radius: var(--border-radius-md);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

/* Dark mode styles */
.dark-mode .use-folder-option-modal {
  background-color: var(--background-secondary);
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.dark-mode .modal-content code {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}
